package com.freesky.biz.rights.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freesky.biz.rights.domain.RightsBusiEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 权益业务配置
 */
public interface RightsBusiMapper extends BaseMapper<RightsBusiEntity> {
    public RightsBusiEntity checkNameUnique(@Param("busiName") String busiName);

    public int updateBusiCount(@Param("busiId") String busiId,
                               @Param("nums") Integer nums);

    public int resetBusi(@Param("busiId") String busiId,
                         @Param("startDt") String startDt,
                         @Param("endDt") String endDt);

    public int auditBusi(@Param("busiId") String busiId,
                         @Param("auditFlag") String auditFlag,
                         @Param("auditReason") String auditReason);

    public int deleteRightsBusByIds(String[] ids);
}
